package com.ruoyi.mywed.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mywed.mapper.FoodDishMapper;
import com.ruoyi.mywed.domain.FoodDish;
import com.ruoyi.mywed.service.IFoodDishService;

/**
 * 菜品管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-19
 */
@Service
public class FoodDishServiceImpl implements IFoodDishService 
{
    @Autowired
    private FoodDishMapper foodDishMapper;

    /**
     * 查询菜品管理
     * 
     * @param id 菜品管理主键
     * @return 菜品管理
     */
    @Override
    public FoodDish selectFoodDishById(Long id)
    {
        return foodDishMapper.selectFoodDishById(id);
    }

    /**
     * 查询菜品管理列表
     * 
     * @param foodDish 菜品管理
     * @return 菜品管理
     */
    @Override
    public List<FoodDish> selectFoodDishList(FoodDish foodDish)
    {
        return foodDishMapper.selectFoodDishList(foodDish);
    }

    /**
     * 新增菜品管理
     * 
     * @param foodDish 菜品管理
     * @return 结果
     */
    @Override
    public int insertFoodDish(FoodDish foodDish)
    {
        return foodDishMapper.insertFoodDish(foodDish);
    }

    /**
     * 修改菜品管理
     * 
     * @param foodDish 菜品管理
     * @return 结果
     */
    @Override
    public int updateFoodDish(FoodDish foodDish)
    {
        return foodDishMapper.updateFoodDish(foodDish);
    }

    /**
     * 批量删除菜品管理
     * 
     * @param ids 需要删除的菜品管理主键
     * @return 结果
     */
    @Override
    public int deleteFoodDishByIds(Long[] ids)
    {
        return foodDishMapper.deleteFoodDishByIds(ids);
    }

    /**
     * 删除菜品管理信息
     * 
     * @param id 菜品管理主键
     * @return 结果
     */
    @Override
    public int deleteFoodDishById(Long id)
    {
        return foodDishMapper.deleteFoodDishById(id);
    }
}
